<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.staticfile.org/vue/3.0.5/vue.global.js"></script>

    <style>
        .myclass1 {
            width: 200px;
            height: 200px;
            background-color: aqua;
        }

        .myclass {
            width: 100px;
            height: 100px;
            background-color: gold;
        }
        .myclass2{
            color: red;
        }
    </style>

</head>

<body>
    <div id="app" class="demo">
        <img v-bind:src="imageSrc">
        <div v-bind:style="mystyle"></div>
        <div v-bind:class="vueclass">俄罗斯方块</div>
        <a v-bind:href="myhref">百度一下</a>
    </div>

    <script>
        const HelloVueApp = {
            data() {
                return {
                    imageSrc: 'https://static.jyshare.com/images/code-icon-script.png',
                    mystyle: 'background-color: blue;width: 100px;height: 20px;',
                    vueclass: 'myclass myclass1 myclass2   ',
                    myhref:'http://www.taobao.com'
                }
            }
        }

        Vue.createApp(HelloVueApp).mount('#app')
    </script>
</body>

</html>